//
//  RowTitleBaseM.m
//  
//  jhf
//
//  Created by 计海峰 on 2020/3/23.
//  Copyright © 2020 计海峰. All rights reserved.
//

#import "RowTitleBaseM.h"
#import <CooperSDK/NSString+Safe.h>

@implementation RowTitleBaseM

+ (RowTitleBaseM *)defaultWithTitleStr:(NSString *)titleStr; {
    RowTitleBaseM *model = RowTitleBaseM.new;
    model.titleLBControl = [LabelControlM defaultText:titleStr];
    model.subTitleLBControl = [LabelControlM defaultText:@""];
    model.detailControl = [LabelControlM defaultText:@""];
    model.optionData = false;
    NSString *placeholderStr = [NSString stringWithFormat:@"请选择%@", titleStr];
    if ([placeholderStr hasSuffix:@":"] || [placeholderStr hasSuffix:@"："]) {
        placeholderStr = placeholderStr.safeRetainRemoveLast;
    }
    model.placeholderStr = placeholderStr;
    model.placeholderColorHex = @"#A9AAAB";
    model.placeholderFont = [UIFont systemFontOfSize:15];
    return model;
}

@end
